package com.pretty.test.controller.pets.station.wrapper;

import com.pretty.test.controller.pets.problem.vo.ProblemPageVO;
import com.pretty.test.controller.pets.station.vo.StationListVO;
import com.pretty.test.entity.PetsStation;
import com.pretty.test.utils.otherutils.BeanUtil;
import com.pretty.test.utils.wrapper.BaseEntityWrapper;

import java.util.Objects;

public class StationListVOWrapper extends BaseEntityWrapper<PetsStation, StationListVO> {

    public static StationListVOWrapper build(){
        return new StationListVOWrapper();
    }

    @Override
    public StationListVO entityVO(PetsStation entity) {
        StationListVO vo = Objects.requireNonNull(BeanUtil.copy(entity, StationListVO.class));
        return vo;
    }
}
